import request from '@/utils/request'

export function query(data) {
    return request({
        url: '/agent/findBySubAgent',
        method: 'get',
        params: data
    })
}
export function agentFindByAgentNo(data) {
    return request({
        url: '/agent/findByAgentNo',
        method: 'get',
        params: data
    })
}
export function findCostFeeByAgentNo(data) {
    return request({
        url: '/agent/findCostFeeByAgentNo',
        method: 'get',
        params: data
    })
}
export function findAgentInfoByAgentNo(data) {
    return request({
        url: '/agent/findAgentInfoByAgentNo',
        method: 'post',
        data
    })

}
export function changeProfitSettleType(data) {
    return request({
        url: '/agent/changeProfitSettleType',
        method: 'post',
        data
    })
}
export function pointsBal(data) {
    return request({
        url: '/account/pointsBal',
        method: 'post',
        data
    })
}
export function queryPointsHis(data) {
    return request({
        url: '/account/queryPointsHis',
        method: 'post',
        data
    })
}
export function upRegulationPoints(data) {
    return request({
        url: '/account/upRegulationPoints',
        method: 'post',
        data
    })
}
export function downRegulationPoints(data) {
    return request({
        url: '/account/downRegulationPoints',
        method: 'post',
        data
    })
}
export function findProActDayByTime(data) {
    return request({
        url: '/profitStatistic/findProActDayByTime',
        method: 'get',
        params:data
    })
}
export function editPwd(data) {
    return request({
        url: '/operator/modifyLoginPassword',
        method: 'post',
        data
    })
}

export function hlgUpload(data) {
    return request({
        url: '/account/hlgUpload',
        method: 'post',
        data
    })
}
export function checkHlgUpload(data) {
    return request({
        url: '/account/checkHlgUpload',
        method: 'post',
        data
    })
}
export function checkSignResult(data) {
    return request({
        url: '/account/checkSignResult',
        method: 'post',
        data
    })
}
export function openSignSdk(data) {
    return request({
        url: '/account/openSignSdk',
        method: 'post',
        data
    })
}
export function custTab(data) {
    return request({
        url: '/cust/custTab',
        method: 'get',
        data
    })
}

export function findProActMonthByTime(data) {
    return request({
        url: '/profitStatistic/findProActMonthByTime',
        method: 'get',
        params:data
    })
}
export function payType(data) {
    return request({
        url: '/profitStatistic/getPayType',
        method: 'get',
        params:data
    })
}
export function findProfitDetailByTimeAndPayType(data) {
    return request({
        url: '/profitStatistic/findProfitDetailByTimeAndPayType',
        method: 'get',
        params:data
    })
}
export function findActivateBackDetailByTime(data) {
    return request({
        url: '/profitStatistic/findActivateBackDetailByTime',
        method: 'get',
        params:data
    })
}
export function findProfitBountyDetailByTimeAndPayType(data) {
    return request({
        url: '/profitStatistic/findProfitBountyDetailByTimeAndPayType',
        method: 'get',
        params: data
    })
}
export function findProfitManageDetailByTimeAndPayType(data) {
    return request({
        url: '/profitStatistic/findProfitManageDetailByTimeAndPayType',
        method: 'get',
        params: data
    })
}
export function preMonthByCurrAgentTotal(data) {
    return request({
        url: '/transStatistic/preMonthByCurrAgentTotal',
        method: 'get',
        params:data
    })
}
export function queryTransNavList(data) {
    return request({
        url: '/transStatistic/findBySubAgentOrderByTrans',
        method: 'get',
        data
    })
}
export function findMonthGroupByCurrAgentList(data) {
    return request({
        url: '/transStatistic/findMonthGroupByCurrAgentList',
        method: 'get',
        params:data
    })
}
export function findDayGroupByCurrAgentList(data) {
    return request({
        url: '/transStatistic/findDayGroupByCurrAgentList2',
        method: 'get',
        params:data
    })
}
export function searchTransCountByParam(data) {
    return request({
        url: '/transStatistic/searchTransCountByParam',
        method: 'post',
        data
    })
}
export function searchTransListByParam(data) {
    return request({
        url: '/transStatistic/searchTransListByParam',
        method: 'post',
        data
    })
}
export function totalStatisticGroupDay(data) {
    return request({
        url: '/profitStatistic/totalStatisticGroupDay',
        method: 'get',
        params:data
    })
}
export function totalStatisticGroupMonth(data) {
    return request({
        url: '/profitStatistic/totalStatisticGroupMonth',
        method: 'get',
        params:data
    })
}
export function totalStatisticSummary(data) {
    return request({
        url: '/profitStatistic/totalStatisticSummary',
        method: 'get',
        params: data
    })
}
export function findProfitDetailById(data) {
    return request({
        url: '/profitStatistic/findProfitDetailById',
        method: 'get',
        params:data
    })
}
export function findActivateBackDetailById(data) {
    return request({
        url: '/profitStatistic/findActivateBackDetailById',
        method: 'get',
        params: data
    })
}
export function findActivateBackDetailByIdTwo(data) {
    return request({
        url: '/profitStatistic/findActivateBackDetailById',
        method: 'get',
        params: data
    })
}
export function findTjProfitDetailById(data) {
    return request({
        url: '/profitStatistic/findTjProfitDetailById',
        method: 'get',
        params: data
    })
}
export function posCountCategory(data) {
    return request({
        url: '/terminal/posCountCategory',
        method: 'get',
        data
    })
}
export function posPageCountCategory(data) {
    return request({
        url: '/terminal/posPageCountCategory',
        method: 'get',
        data
    })
}
export function loseLoginPassSecurityCode(data) {
    return request({
        url: '/operator/loseLoginPassSecurityCode',
        method: 'post',
        data
    })
}
export function securityCodeValid(data) {
    return request({
        url: '/securityCode/securityCodeValid',
        method: 'post',
        data
    })
}
export function loseLoginPassword(data) {
    return request({
        url: '/operator/loseLoginPassword',
        method: 'post',
        data
    })
}
export function bizTypeList(data) {
    return request({
        url: '/account/bizTypeList',
        method: 'post',
        data
    })
}
export function queryAccHisNew(data) {
    return request({
        url: '/account/queryAccHisNew',
        method: 'post',
        data
    })
}
//  查询机构列表
export function findAgencySource(data) {
    return request({
        url: '/agent/findAgencySource',
        method: 'post',
        data
    })
}
